package com.dmap.community.po;

import java.io.Serializable;

public class TabCommunityBanner implements Serializable {
    /**
     * id
     * 表字段 : tab_community_banner.id
     */
    private Long id;

    /**
     * banner类型(1 - 聚宝盆， 2 - 问答)
     * 表字段 : tab_community_banner.type
     */
    private Integer type;

    /**
     * 图片地址
     * 表字段 : tab_community_banner.imageUrl
     */
    private String imageurl;

    /**
     * 链接
     * 表字段 : tab_community_banner.link
     */
    private String link;

    /**
     * 标题
     * 表字段 : tab_community_banner.title
     */
    private String title;

    /**
     * 排序
     * 表字段 : tab_community_banner.sort
     */
    private Integer sort;

    /**
     * 创建时间
     * 表字段 : tab_community_banner.createTime
     */
    private Long createtime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table tab_community_banner
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tab_community_banner
     *
     * @mbggenerated
     */
    public TabCommunityBanner(Long id, Integer type, String imageurl, String link, String title, Integer sort, Long createtime) {
        this.id = id;
        this.type = type;
        this.imageurl = imageurl;
        this.link = link;
        this.title = title;
        this.sort = sort;
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tab_community_banner
     *
     * @mbggenerated
     */
    public TabCommunityBanner() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.id
     *
     * @return the value of tab_community_banner.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.id
     *
     * @param id the value for tab_community_banner.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.type
     *
     * @return the value of tab_community_banner.type
     *
     * @mbggenerated
     */
    public Integer getType() {
        return type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.type
     *
     * @param type the value for tab_community_banner.type
     *
     * @mbggenerated
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.imageUrl
     *
     * @return the value of tab_community_banner.imageUrl
     *
     * @mbggenerated
     */
    public String getImageurl() {
        return imageurl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.imageUrl
     *
     * @param imageurl the value for tab_community_banner.imageUrl
     *
     * @mbggenerated
     */
    public void setImageurl(String imageurl) {
        this.imageurl = imageurl == null ? null : imageurl.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.link
     *
     * @return the value of tab_community_banner.link
     *
     * @mbggenerated
     */
    public String getLink() {
        return link;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.link
     *
     * @param link the value for tab_community_banner.link
     *
     * @mbggenerated
     */
    public void setLink(String link) {
        this.link = link == null ? null : link.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.title
     *
     * @return the value of tab_community_banner.title
     *
     * @mbggenerated
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.title
     *
     * @param title the value for tab_community_banner.title
     *
     * @mbggenerated
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.sort
     *
     * @return the value of tab_community_banner.sort
     *
     * @mbggenerated
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.sort
     *
     * @param sort the value for tab_community_banner.sort
     *
     * @mbggenerated
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column tab_community_banner.createTime
     *
     * @return the value of tab_community_banner.createTime
     *
     * @mbggenerated
     */
    public Long getCreatetime() {
        return createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column tab_community_banner.createTime
     *
     * @param createtime the value for tab_community_banner.createTime
     *
     * @mbggenerated
     */
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tab_community_banner
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", imageurl=").append(imageurl);
        sb.append(", link=").append(link);
        sb.append(", title=").append(title);
        sb.append(", sort=").append(sort);
        sb.append(", createtime=").append(createtime);
        sb.append("]");
        return sb.toString();
    }
}